﻿using System.Data.Entity;
using sdm.exam.domain.Abstract;
using sdm.exam.domain.Entities;
using System.Linq;
using System.Diagnostics;

namespace sdm.exam.domain.DataContext
{
    public class DataContext : DbContext, ISdmExamRepository
    {
        public DataContext() : base(ConnectionStrings.TestConnection){}

        public DataContext(string connectionString) : base(connectionString) { }

        public IDbSet<Booking> Bookings { get; set; }
        public IDbSet<Classroom> Classrooms { get; set; }
        public IDbSet<Course> Courses { get; set; }
        public IDbSet<Education> Educations { get; set; }
        public IDbSet<Exam> Exams { get; set; }
        //public IDbSet<Semester> Semesters { get; set; }
        public IDbSet<SemesterClass> SemesterClasses { get; set; }
        public IDbSet<Teacher> Teachers { get; set; }
        public IDbSet<Studyplan> Studyplans { get; set; }
        public IDbSet<TeacherCourse> TeacherCourses { get; set; }
    }
}
